home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / NOPAUSE.ZIP / NOPAUSE.DOC < prev    next >
Encoding:
Text File  |  1991-06-26  |  3.6 KB  |  81 lines

  1. NOPAUSE.CPP and NOPAUSE2.CPP
  2. By Thomas Astin  CIS: 73407,3427  Prodigy: RNVN08A
  3. (C) Copyright 1991.  All rights reserved.
  4.  
  5. Introduction
  6. ------------
  7. This code demonstrates how to "disable" the pause/lock feature provided on
  8. most 286/386 class machines supporting a 101/102 keyboard. When Pause is
  9. pressed the BIOS loops until any other key is pressed thereby allowing the
  10. user to suspend any program currently running.
  11.  
  12. NOPAUSE and NOPAUSE each demonstrate a way to disable the Pause feature. The
  13. word "disabled" is used loosely because the Pause key is not actually
  14. disabled. Either the Pause key scan codes are kept from the BIOS or the BIOS
  15. data area containing a Pause/Lock bit is constantly cleared. Due to limited
  16. testing on multiple machines it is hard to say if this code will behave
  17. correctly on all machines. Please see notes in source code for further
  18. information.
  19.  
  20. Method #1 - NOPAUSE.CPP
  21. -----------------------
  22. NOPAUSE demonstrates by way of intercepting keyboard hardware int 0x09.
  23.  
  24.  
  25. Method #1 - NOPAUSE.CPP
  26. -----------------------
  27. NOPAUSE2 demonstrates by way of intercepting clock tick interrupt 0x1C. The
  28. code in the intercepting handler clears a Pause/Lock bit located in the BIOS
  29. data area. NOTE: This worked on the testing machine because it was known that
  30. the Pause/Lock loop in the testing machine's bios tested the Pause/Lock bit
  31. and droped out of the loop if the bit was clear. This may not work the same on
  32. other machines.
  33.  
  34.  
  35.          ----------------end-of-author's-documentation---------------
  36.  
  37.                          Software Library Information:
  38.  
  39.                     This disk copy provided as a service of
  40.  
  41.                            Public (software) Library
  42.  
  43.          We are not the authors of this program, nor are we associated
  44.          with the author in any way other than as a distributor of the
  45.          program in accordance with the author's terms of distribution.
  46.  
  47.          Please direct shareware payments and specific questions about
  48.          this program to the author of the program, whose name appears
  49.          elsewhere in  this documentation. If you have trouble getting
  50.          in touch with the author,  we will do whatever we can to help
  51.          you with your questions. All programs have been tested and do
  52.          run.  To report problems,  please use the form that is in the
  53.          file PROBLEM.DOC on many of our disks or in other written for-
  54.          mat with screen printouts, if possible.  PsL cannot debug pro-
  55.          programs over the telephone, though we can answer questions.
  56.  
  57.          Disks in the PsL are updated  monthly,  so if you did not get
  58.          this disk directly from the PsL, you should be aware that the
  59.          files in this set may no longer be the current versions. Also,
  60.          if you got this disk from another vendor and are having prob-
  61.          lems,  be aware that  some files may have become corrupted or
  62.          lost by that vendor. Get a current, working disk from PsL.
  63.  
  64.          For a copy of the latest monthly software library newsletter
  65.          and a list of the 3,000+ disks in the library, call or write
  66.  
  67.                            Public (software) Library
  68.                                P.O.Box 35705 - F
  69.                             Houston, TX 77235-5705
  70.  
  71.                                 1-800-2424-PSL
  72.                              MC/Visa/AmEx/Discover
  73.  
  74.                           Outside of U.S. or in Texas
  75.                           or for general information,
  76.                               Call 1-713-524-6394
  77.  
  78.                           PsL also has an outstanding
  79.                           catalog for the Macintosh.
  80.  
  81.